package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审计模型库对象 sj_model
 * 
 * @author zrr
 * @date 2024-11-06
 */
public class SjModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID编码 */
    private Integer id;

    /** 模型名称 */
    @Excel(name = "模型名称")
    private String name;

    /** 模型创建背景 */
    @Excel(name = "模型创建背景")
    private String background;

    /** 模型业务逻辑 */
    @Excel(name = "模型业务逻辑")
    private String logic;

    /** 主要依据 */
    @Excel(name = "主要依据")
    private String accord;

    /** SQL语句 */
    @Excel(name = "SQL语句")
    private String modelSql;

    /** 数据来源中间表 */
    @Excel(name = "数据来源中间表")
    private String dataTable;

    /** 模型应用情况 */
    @Excel(name = "模型应用情况")
    private String modelCondition;

    /** 搭建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "搭建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 功能简介 */
    @Excel(name = "功能简介")
    private String introduce;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 部门编码 */
    @Excel(name = "部门编码")
    private String departmentCode;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBackground(String background) 
    {
        this.background = background;
    }

    public String getBackground() 
    {
        return background;
    }
    public void setLogic(String logic) 
    {
        this.logic = logic;
    }

    public String getLogic() 
    {
        return logic;
    }
    public void setAccord(String accord) 
    {
        this.accord = accord;
    }

    public String getAccord() 
    {
        return accord;
    }
    public void setModelSql(String modelSql) 
    {
        this.modelSql = modelSql;
    }

    public String getModelSql() 
    {
        return modelSql;
    }
    public void setDataTable(String dataTable) 
    {
        this.dataTable = dataTable;
    }

    public String getDataTable() 
    {
        return dataTable;
    }
    public void setModelCondition(String modelCondition) 
    {
        this.modelCondition = modelCondition;
    }

    public String getModelCondition() 
    {
        return modelCondition;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setDepartmentCode(String departmentCode) 
    {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentCode() 
    {
        return departmentCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("background", getBackground())
            .append("logic", getLogic())
            .append("accord", getAccord())
            .append("modelSql", getModelSql())
            .append("dataTable", getDataTable())
            .append("modelCondition", getModelCondition())
            .append("beginTime", getBeginTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("introduce", getIntroduce())
            .append("department", getDepartment())
            .append("departmentCode", getDepartmentCode())
            .toString();
    }
}
